﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lenovo.KPL.BLL
{
    public static class CommonExtensions
    {
        public static bool IsNumeric(this string obj)
        {
            if (String.IsNullOrEmpty(obj))
                return false;

            for (int i = 0; i < obj.Length; i++)
            {
                if (obj[i] < '0' || obj[i] > '9')
                    return false;
            }
            return true;
        }
    }
}
